﻿using MediatR;
using THE_WIND_RISES.Common.Domans.BasicInformation.MainPlans;
using THE_WIND_RISES.Common.Dtos;

namespace Enterprise_Set.API.Application.Commands.Week2.Mainplan_CRUD
{
    public class AddMainplanCommand:IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int MainplanId { get; set; }
        /// <summary>
        /// 计划编码
        /// </summary>
        public string MainplanNum { get; set; }
        /// <summary>
        /// 计划名称
        /// </summary>
        public string MainplanName { get; set; }
        /// <summary>
        /// 计划描述
        /// </summary>
        public string MainplanContext { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int MainplanState { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 制单部门
        /// </summary>
        public string CreateSection { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public bool ApprovalState { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelMainplan { set; get; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 主生产任务明细数据
        /// </summary>
        public List<Mainplandetail> mainplandetails { get; set; }=new List<Mainplandetail>();
    }
}
